package com.consumer.one.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.consumer.one.fallback.TestHystrixClientFallBack;

@FeignClient(value = "client-one",fallback=TestHystrixClientFallBack.class)
public interface TestApi {

	   @RequestMapping(value = "/hello.do", method = RequestMethod.GET)
	   String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
